<?php


use App\User\Services\UserService;
use Illuminate\Support\Facades\Route;


// 患者相关内部通讯接口
Route::prefix('user')->group(function () {

    // 用户手机号登录
    Route::post('login/phone', [\App\User\Services\UserService::class, 'loginByPhone']);
    // 更换用户手机号
    Route::post('update/phone', [\App\User\Services\UserService::class, 'updatePhone']);
    // 用户实名认证信息接口
    Route::get('info', [UserService::class, 'getInfo']); // 获取用户实名认证详情
    Route::post('update/auth', [UserService::class, 'updateAuth']); // 更新用户实名认证信息
   // Route::post('auth/create', [AuthNameService::class, 'create']); // 添加用户实名验证

    //im 用户绑定
    Route::get('im/user_auth', [\App\User\Services\UserService::class, 'userAuth']); //  查看im 用户绑定状态
    Route::post('im/useradd', [\App\User\Services\UserService::class, 'userAuthAdd']); //  查看im 关系添加

});
/*
// 医生相关内部通讯接口
Route::prefix('doctor')->group(function () {
    // 医生手机号登录
    Route::post('login/phone', [\App\Doctor\Services\DoctorService::class, 'loginByPhone']);

    // 根据ID获取医生列表
    Route::get('list', [\App\Doctor\Services\DoctorService::class, 'getListByIds']);

    // 获取医生列表
    Route::get('list_all', [\App\Doctor\Services\DoctorService::class, 'getListRpc']);

    // 获取医生信息
    Route::get('info/{id}', [\App\Doctor\Services\DoctorService::class, 'getInfoById']);

    //im 用户绑定
    Route::get('im/doctor_auth', [\App\Doctor\Services\DoctorService::class, 'doctorAuth']); //  查看im 用户绑定状态
    Route::post('im/doctor_auth_add', [\App\Doctor\Services\DoctorService::class, 'doctorAuthAdd']); //  查看im 关系添加
});
*/

